package com.dgut.service;

import com.dgut.pojo.Administrator;
import com.dgut.pojo.receive.AdministratorAndBuyerReceive;
import com.dgut.utils.PageRequestInfo;
import com.dgut.utils.PageResult;

public interface AdministratorService {
    /**
     * start-hwf
     */
    Administrator selectAdministratorById(int id);
    boolean addAdmin(AdministratorAndBuyerReceive administratorAndBuyerReceive);
    PageResult normalAdminPage(PageRequestInfo pageRequestInfo);
    PageResult blockedAdminPage(PageRequestInfo pageRequestInfo);
    PageResult adminPage(PageRequestInfo pageRequestInfo);
    Administrator getAdmin(int id);
    boolean updateAdmin(AdministratorAndBuyerReceive administratorAndBuyerReceive);
    boolean changeAdminState(int id,String state);
    boolean deleteAdmin(int id);
    /**
     * end-hwf
     */


    /**
     * start-gxd
     */

    public Object blockBuyer(int id);  //冻结用户
    public Object unBlockBuyer(int id);//解冻用户

    /**
     * end-gxd
     */
}
